package com.tnstart.android.control.light.db;

import java.util.HashMap;
import java.util.Map;

import com.tnstart.android.control.light.config.ConfigBean;
import com.tnstart.android.control.light.config.ConfigLoader;

import android.content.ContentValues;
import android.net.Uri;

public class ConfigColumn extends DatabaseColumn {
	
	public static final String 		TABLE_NAME		=	"config";
	public static final String 		HOST_NAME		=	"host";
	public static final String 		PORT		=	"port";
	
	public static final Uri			CONTENT_URI		=	Uri.parse("content://" + AUTHORITY + "/" + TABLE_NAME);
	private static final Map<String,String> mColumnMap = new HashMap<String,String>();
	 static {
		 
		 mColumnMap.put(_ID, "integer primary key autoincrement");
		 mColumnMap.put(HOST_NAME, "text");
		 mColumnMap.put(PORT, "integer");
	 }
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return TABLE_NAME;
	}
	@Override
	public Uri getTableContent() {
		// TODO Auto-generated method stub
		return CONTENT_URI;
	}
	@Override
	protected Map<String, String> getTableMap() {
		// TODO Auto-generated method stub
		return mColumnMap;
	}
	 
}
